package com.duyutian.common;

/**
 * Created by dyt on 2018/9/29.
 */
public class KindEditMsg {
    private Integer error;
    private String url;
    private String message;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getError() {
        return error;
    }

    public void setError(Integer error) {
        this.error = error;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public KindEditMsg(Integer error, String url, String message) {
        this.error = error;
        this.url = url;
        this.message = message;
    }

    public static KindEditMsg success(String url) {
        return new KindEditMsg(0, url, "");
    }

    public static KindEditMsg error(String message) {
        return new KindEditMsg(1, "", message);
    }


}
